package com.hph.health.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * 代收点表
 * @TableName collection_point
 */
@TableName(value ="collection_point")
public class CollectionPoint implements Serializable {
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 代收点ID
     */
    private String collectionPointId;

    /**
     * 代收点名称
     */
    private String collectionPointName;

    /**
     * 代收点地址
     */
    private String adress;

    /**
     * 联系方式
     */
    private String contact;

    /**
     * 联系人
     */
    private String person;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 是否删除
     */
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    public Long getId() {
        return id;
    }

    /**
     * id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 代收点ID
     */
    public String getCollectionPointId() {
        return collectionPointId;
    }

    /**
     * 代收点ID
     */
    public void setCollectionPointId(String collectionPointId) {
        this.collectionPointId = collectionPointId;
    }

    /**
     * 代收点名称
     */
    public String getCollectionPointName() {
        return collectionPointName;
    }

    /**
     * 代收点名称
     */
    public void setCollectionPointName(String collectionPointName) {
        this.collectionPointName = collectionPointName;
    }

    /**
     * 代收点地址
     */
    public String getAdress() {
        return adress;
    }

    /**
     * 代收点地址
     */
    public void setAdress(String adress) {
        this.adress = adress;
    }

    /**
     * 联系方式
     */
    public String getContact() {
        return contact;
    }

    /**
     * 联系方式
     */
    public void setContact(String contact) {
        this.contact = contact;
    }

    /**
     * 联系人
     */
    public String getPerson() {
        return person;
    }

    /**
     * 联系人
     */
    public void setPerson(String person) {
        this.person = person;
    }

    /**
     * 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 更新时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 更新时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 是否删除
     */
    public Integer getIsDelete() {
        return isDelete;
    }

    /**
     * 是否删除
     */
    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CollectionPoint other = (CollectionPoint) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCollectionPointId() == null ? other.getCollectionPointId() == null : this.getCollectionPointId().equals(other.getCollectionPointId()))
            && (this.getCollectionPointName() == null ? other.getCollectionPointName() == null : this.getCollectionPointName().equals(other.getCollectionPointName()))
            && (this.getAdress() == null ? other.getAdress() == null : this.getAdress().equals(other.getAdress()))
            && (this.getContact() == null ? other.getContact() == null : this.getContact().equals(other.getContact()))
            && (this.getPerson() == null ? other.getPerson() == null : this.getPerson().equals(other.getPerson()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getIsDelete() == null ? other.getIsDelete() == null : this.getIsDelete().equals(other.getIsDelete()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCollectionPointId() == null) ? 0 : getCollectionPointId().hashCode());
        result = prime * result + ((getCollectionPointName() == null) ? 0 : getCollectionPointName().hashCode());
        result = prime * result + ((getAdress() == null) ? 0 : getAdress().hashCode());
        result = prime * result + ((getContact() == null) ? 0 : getContact().hashCode());
        result = prime * result + ((getPerson() == null) ? 0 : getPerson().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getIsDelete() == null) ? 0 : getIsDelete().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", collectionPointId=").append(collectionPointId);
        sb.append(", collectionPointName=").append(collectionPointName);
        sb.append(", adress=").append(adress);
        sb.append(", contact=").append(contact);
        sb.append(", person=").append(person);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", isDelete=").append(isDelete);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}